
<html>
  <head>
    <title><%= @path.title unless @path.nil? %></title><%= stylesheet_link_tag "paths", :media => "all" %><%= javascript_include_tag :defaults %>
  </head>
  <body <%= @on_load_script %>>
    <script type="text/javascript">var selectedId = "none";
      function SetSelectedElement(el)
      {
        if (selectedId != "none")
        {
          $(selectedId).style.border = 'solid 1px white';
        }
        $(el).style.border = 'solid 3px gray';
        selectedId = el;
      }</script>

    <div id="logo" class="center">
      <a href="#" onclick="return OpenInOriginal('http://<%=request.env['HTTP_HOST']%>');">
        <img src="/images/logo-small.gif" border="0" />
      </a>
    </div>
    <h3 id="follow-title"><%= @path.title %> by
      <a href="#" onclick="return OpenInOriginal('http://<%=request.env['HTTP_HOST']%>/users/paths/<%= @path.user.id %>');"><%= @path.user.login %></a>
      <% if is_authorized(@path.user, 'admin') %>
        <a href="#" class="admin" onclick="return OpenInOriginal('http://<%=request.env['HTTP_HOST']%>/paths/<%= @path.id%>;edit');">edit</a>
      <% end %>
    </h3>
    <div id="steps">
      <% 0.upto(@steps.length - 1) do |i| %>
        <%= render(:partial => 'step_new', :object => @steps[i], :locals => {:number => i}) %>
      <% end %>
    </div>
    <% #= link_to 'New path', new_path_path %>
    <a name="bottom">&nbsp;</a>
  </body>
</html>